package com.xio.cloud.service;

import com.xio.cloud.domain.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
* @Author: xio
* @Description: ${Description}
* @Date: 2021/3/31 20:58
*/
@FeignClient("seata-storage-service")
public interface StorageService{

    @GetMapping("/storage/decrease")
    CommonResult decrease(@RequestParam("productId") Long productId,
                          @RequestParam("count") Integer count);

}
